/*
 * @Descripttion: 
 * @version: 
 * @Author: yuanliutech
 * @Date: 2022-12-13 14:39:24
 * @LastEditors: yuanliutech@lwj
 * @LastEditTime: 2022-12-15 10:35:49
 */
import {
    validMobile,
    validSpaceSpecialCharEmoji
} from "@utils/validate";
export default {
    data() {
        return {
            rules: {
                orgId: [{
                    required: true,
                    message: "请选择单位",
                    trigger: "change",
                }, ],
                parkId: [{
                    required: true,
                    message: "请选择园区",
                    trigger: "change",
                }, ],
                buildId: [{
                    required: true,
                    message: "请选择建筑物",
                    trigger: "change",
                }, ],
                floorId: [{
                    required: true,
                    message: "请选择楼层",
                    trigger: "change",
                }, ],
                spaceId: [{
                    required: true,
                    message: "请选择安装点",
                    trigger: "change",
                }, ],
                type: [{
                    required: true,
                    message: "请选择隔离因素",
                    trigger: "change",
                }, ],
                isolationType: [{
                    required: true,
                    message: "请选择隔离类型",
                    trigger: "change",
                }, ],
                startTime: [{
                    required: true,
                    message: "请选择隔离开始时间",
                    trigger: "change",
                }, ],
                days: [{
                    required: true,
                    message: "请选择隔离天数",
                    trigger: "change",
                }, ],
                name: [{
                    required: true,
                    message: "请输入姓名",
                    trigger: "blur",
                }, {
                    validator: validSpaceSpecialCharEmoji
                }, ],
                gender: [{
                    required: true,
                    message: "请选择性别",
                    trigger: "change",
                }, ],
                idCard: [{
                        trigger: "blur",
                    },
                    {
                        validator: validSpaceSpecialCharEmoji
                    },
                ],
            },
            rules1: {
                name: [{
                    required: true,
                    message: "请输入姓名",
                    trigger: "blur",
                }, {
                    validator: validSpaceSpecialCharEmoji
                }, ],
                mobile: [{
                        trigger: "blur",
                    },
                    {
                        // validator: validMobile
                    },
                ],
                gender: [{
                    required: true,
                    message: "请选择性别",
                    trigger: "change",
                }, ],
            }
        }
    }
}